package pm.devices.drives;

import javax.swing.*;

/**
 * @author Anton Bernatski
 */
public class Drive {

	private String id;
	private DriveType type;

	public Drive(String id, DriveType type) {
		this.id = id;
		this.type = type;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public DriveType getType() {
		return type;
	}

	public void setType(DriveType type) {
		this.type = type;
	}

	public String getDisplayableText() {
		return DrivesUtil.getDisplayableText(getType(), getId());
	}

	public ImageIcon getIcon() {
		return DrivesUtil.getIcon(getType());
	}
}
